Name Property (Session Object) 

The Name property returns the name of the profile logged on to this session. Read-only.

Syntax

objSession.Name

Data Type

String

Remarks

The Name property corresponds to the MAPI property PR_DISPLAY_NAME.

The Name property is the default property of a Session object, meaning that Session is syntactically equivalent to Session.Name in Visual Basic code.

Examples

' from the function Session_Name

    If objSession Is Nothing Then

        MsgBox "Must log on first: see Session menu"

        Exit Function

    End If

    MsgBox "Session name = " & objSession.Name

 

See Also

Session Object